<?
/*====================*\
|    DATABASE SETTINGS     |
\*====================*/
$xcpage['database']['Server'] = 'localhost';
$xcpage['database']['Username'] = 'root';
$xcpage['database']['Password'] = 'root';
$xcpage['database']['Database'] = 'db';

$connect = mysql_connect($xcpage['database']['Server'], $xcpage['database']['Username'], $xcpage['database']['Password']);
if (!$connect) {
die(mysql_error());
}
else
{
mysql_select_db($xcpage['database']['Database'], $connect);
}

$result = mysql_query("SELECT * FROM xcp");

$row = mysql_fetch_array($result);

mysql_close($connect);
?>